package javango.contrib.compat;

import javango.contrib.hibernate.HibernateUtil;
import javango.forms.widgets.WidgetFactory;

public class ModelChoiceField<V> extends javango.contrib.hibernate.ModelChoiceField<V> {

	public ModelChoiceField() {
		super(Static.getInjector().getInstance(WidgetFactory.class), Static.getInjector().getInstance(HibernateUtil.class), Static.getInjector().getInstance(javango.db.Managers.class));
	}
	
	public ModelChoiceField(Class modelClass) {
		super(
				Static.getInjector().getInstance(WidgetFactory.class), 
				Static.getInjector().getInstance(HibernateUtil.class), 
				Static.getInjector().getInstance(javango.db.Managers.class));
		setModel(modelClass);
	}

}
